<?php

namespace app\api\controller\god;

use app\common\controller\Api;

// 考区数据
class Examarea extends Api
{
    protected $noNeedRight = '*';
    protected $noNeedLogin = ['lists'];

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model("Examarea");
    }


    public function lists()
    {
        $params = $this->request->param();

        $lists = $this->model->field('id,name,code,is_choose,status')
            ->where('status', 'normal') // 状态正常
            ->select();

        $this->success('查询成功', $lists);

    }

}